package org.jeecg.common.modules.doctor.service;

import org.jeecg.common.modules.doctor.entity.Doctor;
import org.jeecg.common.modules.doctor.entity.DoctorConfig;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * @Description: doctor_config
 * @Author: jeecg-boot
 * @Date:   2020-08-15
 * @Version: V1.0
 */
public interface IDoctorConfigService extends IService<DoctorConfig> {

    /**
     * 根据医生ID获取配置
     * @param doctorId
     * @param create 如不存在,是否创建
     * @return
     */
    DoctorConfig getByDoctorId(String doctorId,Boolean create);

    /**
     * 挂号分成比例检测
     */
    Doctor registerRatioCheck(String doctorId);
}
